package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.commen.R;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Transactional
public interface ISetmealService extends IService<Setmeal> {
    void saveMeal(SetmealDto setmealDto, HttpServletRequest request);
    Page<SetmealDto> selectPage(Integer page, Integer pageSize, String name);
    void deleteByIds(List<Long> ids, Integer status);
    void updateStatus(Integer status, List<Long> ids);
    SetmealDto selectById(Long id);
    void updateInfo(SetmealDto setmealDto, HttpServletRequest request);
}
